Hey everybody,
I've got two char arrays which each represent college course names. I want to compare the courses based off the integer part of their name to determine which one is larger, but am not quite sure how to do this. These are the two arrays I've got...
I am trying to accomplish this:Code:char a[6] = "CS120"; char b[6] = "CS450";
Any help or suggestions would be greatly appreciated.Code:if(120 < 450) { do stuff here }
Thanks,
Chris C.